namespace Paperless.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class addMetaDataToEntity : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.Agents", "UpdatedDate", c => c.DateTime());
            AddColumn("dbo.Agents", "UpdatedBy", c => c.String());
            AddColumn("dbo.Agents", "CreatedDate", c => c.DateTime());
            AddColumn("dbo.Agents", "CreatedBy", c => c.String());
            AddColumn("dbo.Transactions", "UpdatedDate", c => c.DateTime());
            AddColumn("dbo.Transactions", "UpdatedBy", c => c.String());
            AddColumn("dbo.Transactions", "CreatedDate", c => c.DateTime());
            AddColumn("dbo.Transactions", "CreatedBy", c => c.String());
            AddColumn("dbo.Locations", "UpdatedDate", c => c.DateTime());
            AddColumn("dbo.Locations", "UpdatedBy", c => c.String());
            AddColumn("dbo.Locations", "CreatedDate", c => c.DateTime());
            AddColumn("dbo.Locations", "CreatedBy", c => c.String());
            AddColumn("dbo.Status", "UpdatedDate", c => c.DateTime());
            AddColumn("dbo.Status", "UpdatedBy", c => c.String());
            AddColumn("dbo.Status", "CreatedDate", c => c.DateTime());
            AddColumn("dbo.Status", "CreatedBy", c => c.String());
            AddColumn("dbo.Categories", "UpdatedDate", c => c.DateTime());
            AddColumn("dbo.Categories", "UpdatedBy", c => c.String());
            AddColumn("dbo.Categories", "CreatedDate", c => c.DateTime());
            AddColumn("dbo.Categories", "CreatedBy", c => c.String());
            AddColumn("dbo.CheckLists", "UpdatedDate", c => c.DateTime());
            AddColumn("dbo.CheckLists", "UpdatedBy", c => c.String());
            AddColumn("dbo.CheckLists", "CreatedDate", c => c.DateTime());
            AddColumn("dbo.CheckLists", "CreatedBy", c => c.String());
            AddColumn("dbo.CheckListTasks", "UpdatedDate", c => c.DateTime());
            AddColumn("dbo.CheckListTasks", "UpdatedBy", c => c.String());
            AddColumn("dbo.CheckListTasks", "CreatedDate", c => c.DateTime());
            AddColumn("dbo.CheckListTasks", "CreatedBy", c => c.String());
            AddColumn("dbo.Comments", "UpdatedDate", c => c.DateTime());
            AddColumn("dbo.Comments", "UpdatedBy", c => c.String());
            AddColumn("dbo.Comments", "CreatedDate", c => c.DateTime());
            AddColumn("dbo.Comments", "CreatedBy", c => c.String());
            AddColumn("dbo.Documents", "UpdatedDate", c => c.DateTime());
            AddColumn("dbo.Documents", "UpdatedBy", c => c.String());
            AddColumn("dbo.Documents", "CreatedDate", c => c.DateTime());
            AddColumn("dbo.Documents", "CreatedBy", c => c.String());
            AddColumn("dbo.Contacts", "UpdatedDate", c => c.DateTime());
            AddColumn("dbo.Contacts", "UpdatedBy", c => c.String());
            AddColumn("dbo.Contacts", "CreatedDate", c => c.DateTime());
            AddColumn("dbo.Contacts", "CreatedBy", c => c.String());
            AddColumn("dbo.Notes", "UpdatedDate", c => c.DateTime());
            AddColumn("dbo.Notes", "UpdatedBy", c => c.String());
            AddColumn("dbo.Notes", "CreatedBy", c => c.String());
            AlterColumn("dbo.Notes", "CreatedDate", c => c.DateTime());
            DropColumn("dbo.Transactions", "CreateDate");
            DropColumn("dbo.Transactions", "UpdateDate");
            DropColumn("dbo.Transactions", "CreateBy");
            DropColumn("dbo.AspNetUsers", "Active");
            DropColumn("dbo.Documents", "CreateDate");
            DropColumn("dbo.Documents", "CreateBy");
        }
        
        public override void Down()
        {
            AddColumn("dbo.Documents", "CreateBy", c => c.Long(nullable: false));
            AddColumn("dbo.Documents", "CreateDate", c => c.DateTime(nullable: false));
            AddColumn("dbo.AspNetUsers", "Active", c => c.Boolean(nullable: false));
            AddColumn("dbo.Transactions", "CreateBy", c => c.String());
            AddColumn("dbo.Transactions", "UpdateDate", c => c.DateTime());
            AddColumn("dbo.Transactions", "CreateDate", c => c.DateTime(nullable: false));
            AlterColumn("dbo.Notes", "CreatedDate", c => c.DateTime(nullable: false));
            DropColumn("dbo.Notes", "CreatedBy");
            DropColumn("dbo.Notes", "UpdatedBy");
            DropColumn("dbo.Notes", "UpdatedDate");
            DropColumn("dbo.Contacts", "CreatedBy");
            DropColumn("dbo.Contacts", "CreatedDate");
            DropColumn("dbo.Contacts", "UpdatedBy");
            DropColumn("dbo.Contacts", "UpdatedDate");
            DropColumn("dbo.Documents", "CreatedBy");
            DropColumn("dbo.Documents", "CreatedDate");
            DropColumn("dbo.Documents", "UpdatedBy");
            DropColumn("dbo.Documents", "UpdatedDate");
            DropColumn("dbo.Comments", "CreatedBy");
            DropColumn("dbo.Comments", "CreatedDate");
            DropColumn("dbo.Comments", "UpdatedBy");
            DropColumn("dbo.Comments", "UpdatedDate");
            DropColumn("dbo.CheckListTasks", "CreatedBy");
            DropColumn("dbo.CheckListTasks", "CreatedDate");
            DropColumn("dbo.CheckListTasks", "UpdatedBy");
            DropColumn("dbo.CheckListTasks", "UpdatedDate");
            DropColumn("dbo.CheckLists", "CreatedBy");
            DropColumn("dbo.CheckLists", "CreatedDate");
            DropColumn("dbo.CheckLists", "UpdatedBy");
            DropColumn("dbo.CheckLists", "UpdatedDate");
            DropColumn("dbo.Categories", "CreatedBy");
            DropColumn("dbo.Categories", "CreatedDate");
            DropColumn("dbo.Categories", "UpdatedBy");
            DropColumn("dbo.Categories", "UpdatedDate");
            DropColumn("dbo.Status", "CreatedBy");
            DropColumn("dbo.Status", "CreatedDate");
            DropColumn("dbo.Status", "UpdatedBy");
            DropColumn("dbo.Status", "UpdatedDate");
            DropColumn("dbo.Locations", "CreatedBy");
            DropColumn("dbo.Locations", "CreatedDate");
            DropColumn("dbo.Locations", "UpdatedBy");
            DropColumn("dbo.Locations", "UpdatedDate");
            DropColumn("dbo.Transactions", "CreatedBy");
            DropColumn("dbo.Transactions", "CreatedDate");
            DropColumn("dbo.Transactions", "UpdatedBy");
            DropColumn("dbo.Transactions", "UpdatedDate");
            DropColumn("dbo.Agents", "CreatedBy");
            DropColumn("dbo.Agents", "CreatedDate");
            DropColumn("dbo.Agents", "UpdatedBy");
            DropColumn("dbo.Agents", "UpdatedDate");
        }
    }
}
